package cn.stylefeng.guns.modular.wxuser.mapper;

import cn.stylefeng.guns.modular.order.model.params.TbOrderParam;
import cn.stylefeng.guns.modular.wxuser.entity.TaoWxUser;
import cn.stylefeng.guns.modular.wxuser.model.params.TaoWxUserParam;
import cn.stylefeng.guns.modular.wxuser.model.result.TaoWxUserResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lcw
 * @since 2019-10-22
 */
public interface TaoWxUserMapper extends BaseMapper<TaoWxUser> {

    /**
     * 获取列表
     *
     * @author lcw
     * @Date 2019-10-22
     */
    List<TaoWxUserResult> customList(@Param("paramCondition") TaoWxUserParam paramCondition);

    /**
     * 获取map列表
     *
     * @author lcw
     * @Date 2019-10-22
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") TaoWxUserParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author lcw
     * @Date 2019-10-22
     */
    Page<TaoWxUserResult> customPageList(@Param("page") Page page, @Param("paramCondition") TaoWxUserParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author lcw
     * @Date 2019-10-22
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") TaoWxUserParam paramCondition);


    void updateNotify(@Param("notify") String notify,@Param("openId")String openId);

    int number(@Param("notify") String notify,@Param("openId")String openId);

    int num(@Param("openId")String openId);


    /**
     * 修改种草状态
     */
    int updateIsTree(TbOrderParam tbOrderParam);




}
